package com.xrtn.bean;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

public class SysUserInfo {
    private Integer userId;

    private String userNo;

    private String userName;

    private String userPhone;

    private String userPwd;

    private Integer userGender;

    private String roleName;

    private String userImg;

    private Integer userLevel;

    private Integer subclinicId;

    private Integer userRole;

    private Integer userStatus;

    private Date leaveTime;

    private Date createTime;

    private String subclinicName;

    private String userSource;

    private String createTimeStr;

    private Integer avgReply;

    private String expertDesc;

    private String workExperience;

    private String parentsSound;

    private String learnResult;

    private String learnResultImg;

    private String proAuth;

    private String proAuthImg;

    private String userDesc;

    private String userTitle;

    private String workYear;

    private String levelType;

    private Integer isWork;

    private List<Map<String,Object>> menuList = new ArrayList<>();

    private List<FunctionInfo> roleFunction = new ArrayList<>();

    private String roleFunctionStr;

    public String getGradeNumber() {
        return gradeNumber;
    }

    public void setGradeNumber(String gradeNumber) {
        this.gradeNumber = gradeNumber;
    }

    public String getGradeName() {
        return gradeName;
    }

    public void setGradeName(String gradeName) {
        this.gradeName = gradeName;
    }

    private String gradeNumber;
    private String gradeName;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    public Integer getUserGender() {
        return userGender;
    }

    public void setUserGender(Integer userGender) {
        this.userGender = userGender;
    }

    public String getUserImg() {
        return userImg;
    }

    public void setUserImg(String userImg) {
        this.userImg = userImg;
    }

    public Integer getUserLevel() {
        return userLevel;
    }

    public void setUserLevel(Integer userLevel) {
        this.userLevel = userLevel;
    }

    public Integer getSubclinicId() {
        return subclinicId;
    }

    public void setSubclinicId(Integer subclinicId) {
        this.subclinicId = subclinicId;
    }

    public Integer getUserRole() {
        return userRole;
    }

    public void setUserRole(Integer userRole) {
        this.userRole = userRole;
    }

    public Integer getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(Integer userStatus) {
        this.userStatus = userStatus;
    }

    public Date getLeaveTime() {
        return leaveTime;
    }

    public void setLeaveTime(Date leaveTime) {
        this.leaveTime = leaveTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getSubclinicName() {
        return subclinicName;
    }

    public void setSubclinicName(String subclinicName) {
        this.subclinicName = subclinicName;
    }

    public String getUserSource() {
        return userSource;
    }

    public void setUserSource(String userSource) {
        this.userSource = userSource;
    }

    public String getCreateTimeStr() {
        return createTimeStr;
    }

    public void setCreateTimeStr(String createTimeStr) {
        this.createTimeStr = createTimeStr;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public List<Map<String, Object>> getMenuList() {
        return menuList;
    }

    public void setMenuList(List<Map<String, Object>> menuList) {
        this.menuList = menuList;
    }

    public List<FunctionInfo> getRoleFunction() {
        return roleFunction;
    }

    public void setRoleFunction(List<FunctionInfo> roleFunction) {
        this.roleFunction = roleFunction;
    }

    public Integer getAvgReply() {
        return avgReply;
    }

    public void setAvgReply(Integer avgReply) {
        this.avgReply = avgReply;
    }

    public String getExpertDesc() {
        return expertDesc;
    }

    public void setExpertDesc(String expertDesc) {
        this.expertDesc = expertDesc;
    }

    public String getWorkExperience() {
        return workExperience;
    }

    public void setWorkExperience(String workExperience) {
        this.workExperience = workExperience;
    }

    public String getParentsSound() {
        return parentsSound;
    }

    public void setParentsSound(String parentsSound) {
        this.parentsSound = parentsSound;
    }

    public String getLearnResult() {
        return learnResult;
    }

    public void setLearnResult(String learnResult) {
        this.learnResult = learnResult;
    }

    public String getLearnResultImg() {
        return learnResultImg;
    }

    public void setLearnResultImg(String learnResultImg) {
        this.learnResultImg = learnResultImg;
    }

    public String getProAuth() {
        return proAuth;
    }

    public void setProAuth(String proAuth) {
        this.proAuth = proAuth;
    }

    public String getProAuthImg() {
        return proAuthImg;
    }

    public void setProAuthImg(String proAuthImg) {
        this.proAuthImg = proAuthImg;
    }

    public String getUserDesc() {
        return userDesc;
    }

    public void setUserDesc(String userDesc) {
        this.userDesc = userDesc;
    }

    public String getUserTitle() {
        return userTitle;
    }

    public void setUserTitle(String userTitle) {
        this.userTitle = userTitle;
    }

    public String getWorkYear() {
        return workYear;
    }

    public void setWorkYear(String workYear) {
        this.workYear = workYear;
    }

    public String getLevelType() {
        return levelType;
    }

    public void setLevelType(String levelType) {
        this.levelType = levelType;
    }

    public String getRoleFunctionStr() {
        System.out.println(JSONArray.fromObject(this.roleFunction).toString());
        return JSONArray.fromObject(this.roleFunction).toString();
    }

    public void setRoleFunctionStr(String roleFunctionStr) {
        this.roleFunctionStr = roleFunctionStr;
    }

    public Integer getIsWork() {
        return isWork;
    }

    public void setIsWork(Integer isWork) {
        this.isWork = isWork;
    }
}